# 导入库
import utime as time
from machine import SoftI2C, Pin, RTC
from ht16k33matrix import HT16K33Matrix

i2c = SoftI2C(scl=Pin(22), sda=Pin(21))
display = HT16K33Matrix(i2c)

display.set_icon(b'\x00\x18\x00\x00\x00\x00\x00\x00').draw() 

'''
# 绘制点阵。使用8x8.html取模，粘贴就行
display.set_icon(b'\x00\x24\x5a\x42\x24\x18\x00\x00').draw()
display.set_icon(b'\x01').set_inverse().draw()  # 取反，原来不亮的亮
display.is_set(0,0) # x,y 判断有没有亮
display.scroll_text('123') # 只支持 ascii 码表的字符
display.set_character(65).draw() # ascii 字符
display.clear() # 清除
display.power_on() # 熄灭
display.power_off() # 亮起
'''

